package com.huirui.server.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;


/**
 * 新增管理员请求DTO
 */
@Data
@Schema(name = "AdminAddDto", description = "新增管理员请求参数")
public class AdminAddDto {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 4, max = 50, message = "用户名长度必须在4-50个字符之间")
    @Schema(description = "登录用户名", required = true, example = "admin")
    private String account;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    @Schema(description = "登录密码", required = true, example = "123456")
    private String password;

    @Schema(description = "管理员昵称", example = "系统管理员")
    private String nickname;

    @Schema(description = "手机号码", example = "13800138000")
    private String mobile;

    @Schema(description = "邮箱地址", example = "admin@example.com")
    private String email;

    @Schema(description = "状态（0-禁用，1-正常）", example = "1")
    private Integer status = 1;
}
